Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-day vector-sticky-header-enabled" lang="de" dir="ltr"><head>
<meta charset="UTF-8">
<title>Scikit-image</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://de.wikipedia.org/wiki/Scikit-image"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link href="./_mw_/ext.gadget.citeRef.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.defaultPlainlinks.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonHide.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonLayout.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonStyle.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiDarkmode.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiResponsive.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.specialSearch.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Scikit-image rootpage-Scikit-image skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Scikit-image</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="de" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><table class="float-right infobox toccolours toptextcells" style="border-spacing:5px; font-size:90%; text-align:left; width:21em;">

<tbody><tr>
<th colspan="2" class="hintergrundfarbe6" style="font-size:105%; text-align:center;">scikit-image
<p class="mw-empty-elt">
</p>
</th></tr>
<tr>
<td colspan="2" class="notheme" style="text-align:center; background-color:#f8f9fa;"><span typeof="mw:File"></span>
</td></tr>
<tr>
<th colspan="2" class="hintergrundfarbe5" style="font-size:105%; text-align:center;">Basisdaten
<p class="mw-empty-elt">
</p>
</th></tr>
<tr>
<td><b><a href="Softwareentwickler" title="Softwareentwickler">Entwickler</a></b>
</td>
<td>Community-Projek
</td></tr>
<tr>
<td><b>Aktuelle&nbsp;<a href="Version_(Software)" title="Version (Software)">Version</a></b>
</td>
<td><span class="wikidata-content">0.25.2<sup id="cite_ref-_a80aafe770c05400_1-0" class="reference"><a href="#cite_note-_a80aafe770c05400-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></span> <br> (<span class="wikidata-content">18. Februar 2025</span>)
</td></tr>
<tr>
<td><b><a href="Betriebssystem" title="Betriebssystem">Betriebssystem</a></b>
</td>
<td><a href="Plattformunabh%C3%A4ngigkeit" title="Plattformunabhängigkeit">Plattformunabhängig</a>
</td></tr>
<tr>
<td><b><a href="Programmiersprache" title="Programmiersprache">Programmier­sprache</a></b>
</td>
<td><span class="wikidata-content"><a href="Python_(Programmiersprache)" title="Python (Programmiersprache)">Python</a><sup id="cite_ref-_0148e8f41fb42f30_2-0" class="reference"><a href="#cite_note-_0148e8f41fb42f30-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-_0cf9f25b187da579_3-0" class="reference"><a href="#cite_note-_0cf9f25b187da579-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>, <a href="Cython" title="Cython">Cython</a><sup id="cite_ref-_0148e8f41fb42f30_2-1" class="reference"><a href="#cite_note-_0148e8f41fb42f30-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></span>
</td></tr>
<tr>
<td><b>Kategorie</b>
</td>
<td>Technical computing
</td></tr>
<tr>
<td><b>Lizenz</b>
</td>
<td><a href="BSD-Lizenz" title="BSD-Lizenz">BSD-Lizenz</a>
</td></tr>
<tr>
<td class="hintergrundfarbe5" colspan="2" style="text-align:center;"><a rel="nofollow" class="external text" href="http://scikit-image.org/">scikit-image.org</a>
</td></tr></tbody></table>
<p><b>scikit-image</b> (ehemals scikits.image) ist eine <a href="Freie_Software" title="Freie Software">freie Software</a>-<a href="Programmbibliothek" title="Programmbibliothek">Bibliothek</a> zur <a href="Bildverarbeitung" title="Bildverarbeitung">Bildverarbeitung</a> für die <a href="Programmiersprache" title="Programmiersprache">Programmiersprache</a> <a href="Python_(Programmiersprache)" title="Python (Programmiersprache)">Python</a>. Sie enthält Algorithmen für Segmentierung, <a href="Affine_Abbildung" title="Affine Abbildung">geometrische Transformationen</a>, Farbraummanipulation, Analyse, Filterung, <a href="Mathematische_Morphologie" title="Mathematische Morphologie">Morphologie</a>, <a href="Interest-Operator" title="Interest-Operator">Feature-Erkennung</a> und mehr. Sie basiert als SciKit (Kurzform für SciPy Toolkit), wie beispielsweise auch <a href="Scikit-learn" title="Scikit-learn">Scikit-learn</a>, auf den numerischen und wissenschaftlichen Python-Bibliotheken <a href="NumPy" title="NumPy">NumPy</a> und <a href="SciPy" title="SciPy">SciPy</a>.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>

<div class="mw-heading mw-heading2"><h2 id="Implementierung">Implementierung</h2></div>
<p>Scikit-image ist weitgehend in Python geschrieben. Einige Kernalgorithmen wurden aus Performancegründen in Cython realisiert.
</p>
<div class="mw-heading mw-heading2"><h2 id="Beispiel">Beispiel</h2></div>

<p>In diesem Beispiel wird ein Schachbrettmuster data.checkerboard() erzeugt und anschließend mit einer <a href="Affine_Abbildung" title="Affine Abbildung">affinen Abbildung</a> verzerrt. Nachdem noch weitere Elemente dem Bild hinzugefügt worden sind, werden Eckpunkte mit Hilfe des Harris Corner Detectors, eines <a href="Interest-Operator" title="Interest-Operator">Interest-Operators</a>, ermittelt.
</p>
<div class="mw-highlight mw-highlight-lang-python mw-content-ltr" dir="ltr"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">matplotlib</span><span class="w"> </span><span class="kn">import</span> <span class="n">pyplot</span> <span class="k">as</span> <span class="n">plt</span>

<span class="kn">from</span><span class="w"> </span><span class="nn">skimage</span><span class="w"> </span><span class="kn">import</span> <span class="n">data</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">skimage.feature</span><span class="w"> </span><span class="kn">import</span> <span class="n">corner_harris</span><span class="p">,</span> <span class="n">corner_subpix</span><span class="p">,</span> <span class="n">corner_peaks</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">skimage.transform</span><span class="w"> </span><span class="kn">import</span> <span class="n">warp</span><span class="p">,</span> <span class="n">AffineTransform</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">skimage.draw</span><span class="w"> </span><span class="kn">import</span> <span class="n">ellipse</span>

<span class="c1"># Wir erzeugen eine Affine Abbildung des Schachbrettmusters data.checkerboard()</span>
<span class="n">tform</span> <span class="o">=</span> <span class="n">AffineTransform</span><span class="p">(</span><span class="n">scale</span><span class="o">=</span><span class="p">(</span><span class="mf">1.3</span><span class="p">,</span> <span class="mf">1.1</span><span class="p">),</span> <span class="n">rotation</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">shear</span><span class="o">=</span><span class="mf">0.7</span><span class="p">,</span> <span class="n">translation</span><span class="o">=</span><span class="p">(</span><span class="mi">210</span><span class="p">,</span> <span class="mi">50</span><span class="p">))</span>
<span class="n">image</span> <span class="o">=</span> <span class="n">warp</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">checkerboard</span><span class="p">(),</span> <span class="n">tform</span><span class="o">.</span><span class="n">inverse</span><span class="p">,</span> <span class="n">output_shape</span><span class="o">=</span><span class="p">(</span><span class="mi">350</span><span class="p">,</span> <span class="mi">350</span><span class="p">))</span>

<span class="c1"># Ellipse zeichnen</span>
<span class="n">rr</span><span class="p">,</span> <span class="n">cc</span> <span class="o">=</span> <span class="n">ellipse</span><span class="p">(</span><span class="mi">310</span><span class="p">,</span> <span class="mi">175</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>
<span class="n">image</span><span class="p">[</span><span class="n">rr</span><span class="p">,</span> <span class="n">cc</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span>

<span class="c1"># zwei Rechtecke zeichnen</span>
<span class="n">image</span><span class="p">[</span><span class="mi">180</span><span class="p">:</span><span class="mi">230</span><span class="p">,</span> <span class="mi">10</span><span class="p">:</span><span class="mi">60</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">image</span><span class="p">[</span><span class="mi">230</span><span class="p">:</span><span class="mi">280</span><span class="p">,</span> <span class="mi">60</span><span class="p">:</span><span class="mi">110</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span>

<span class="c1"># Mit Hilfe des Harris Corner Detectors Eckpunkte ermitteln</span>
<span class="n">coords</span> <span class="o">=</span> <span class="n">corner_peaks</span><span class="p">(</span><span class="n">corner_harris</span><span class="p">(</span><span class="n">image</span><span class="p">),</span> <span class="n">min_distance</span><span class="o">=</span><span class="mi">5</span><span class="p">)</span>
<span class="n">coords_subpix</span> <span class="o">=</span> <span class="n">corner_subpix</span><span class="p">(</span><span class="n">image</span><span class="p">,</span> <span class="n">coords</span><span class="p">,</span> <span class="n">window_size</span><span class="o">=</span><span class="mi">13</span><span class="p">)</span>

<span class="n">fig</span><span class="p">,</span> <span class="n">ax</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplots</span><span class="p">()</span>
<span class="n">ax</span><span class="o">.</span><span class="n">imshow</span><span class="p">(</span><span class="n">image</span><span class="p">,</span> <span class="n">interpolation</span><span class="o">=</span><span class="s1">'nearest'</span><span class="p">,</span> <span class="n">cmap</span><span class="o">=</span><span class="n">plt</span><span class="o">.</span><span class="n">cm</span><span class="o">.</span><span class="n">gray</span><span class="p">)</span>
<span class="n">ax</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">coords</span><span class="p">[:,</span> <span class="mi">1</span><span class="p">],</span> <span class="n">coords</span><span class="p">[:,</span> <span class="mi">0</span><span class="p">],</span> <span class="s1">'.b'</span><span class="p">,</span> <span class="n">markersize</span><span class="o">=</span><span class="mi">3</span><span class="p">)</span>
<span class="n">ax</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">coords_subpix</span><span class="p">[:,</span> <span class="mi">1</span><span class="p">],</span> <span class="n">coords_subpix</span><span class="p">[:,</span> <span class="mi">0</span><span class="p">],</span> <span class="s1">'+r'</span><span class="p">,</span> <span class="n">markersize</span><span class="o">=</span><span class="mi">15</span><span class="p">)</span>
<span class="n">ax</span><span class="o">.</span><span class="n">axis</span><span class="p">((</span><span class="mi">0</span><span class="p">,</span> <span class="mi">350</span><span class="p">,</span> <span class="mi">350</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>
<div class="mw-heading mw-heading2"><h2 id="Siehe_auch">Siehe auch</h2></div>
<ul><li><a href="OpenCV" title="OpenCV">OpenCV</a> eine freie Programmbibliothek mit Algorithmen für die Bildverarbeitung und <a href="Maschinelles_Sehen" class="mw-redirect" title="Maschinelles Sehen">maschinelles Sehen</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Weblinks">Weblinks</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://scikit-image.org/">Offizielle Website</a></li>
<li><a rel="nofollow" class="external text" href="https://github.com/scikit-image/scikit-image">Github-Seite von scikit-image</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Einzelnachweise">Einzelnachweise</h2></div>
<ol class="references">
<li id="cite_note-_a80aafe770c05400-1"><span class="mw-cite-backlink"><a href="#cite_ref-_a80aafe770c05400_1-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://github.com/scikit-image/scikit-image/releases/tag/v0.25.2"><cite style="font-style:italic"><span lang="en">Release 0.25.2</span></cite>.</a> 18.&nbsp;Februar 2025 (abgerufen am 28.&nbsp;Februar 2025).</span>
</li>
<li id="cite_note-_0148e8f41fb42f30-2"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-_0148e8f41fb42f30_2-0">a</a></sup> <sup><a href="#cite_ref-_0148e8f41fb42f30_2-1">b</a></sup></span> <span class="reference-text">In: <cite style="font-style:italic">scikit-image: image processing in Python</cite>.</span>
</li>
<li id="cite_note-_0cf9f25b187da579-3"><span class="mw-cite-backlink"><a href="#cite_ref-_0cf9f25b187da579_3-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.openhub.net/p/scikit-image/analyses/latest/languages_summary"><cite style="font-style:italic">www.openhub.net</cite>.</a> In: <cite style="font-style:italic">Open Hub</cite>. (abgerufen am 25.&nbsp;Januar 2021).</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"><span class="cite">Emmanuelle Gouillart: <a rel="nofollow" class="external text" href="https://www.scipy-lectures.org/packages/scikit-image/"><i>Scikit-image: image processing — Scipy lecture notes.</i></a> In: <i>Tutorials on the scientific Python ecosystem: a quick introduction to central tools and techniques.</i><span class="Abrufdatum"> Abgerufen am 31.&nbsp;August 2018</span> (englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Fde.wikipedia.org%3AScikit-image&amp;rft.title=Scikit-image%3A+image+processing+%E2%80%94+Scipy+lecture+notes&amp;rft.description=Scikit-image%3A+image+processing+%E2%80%94+Scipy+lecture+notes&amp;rft.identifier=https%3A%2F%2Fwww.scipy-lectures.org%2Fpackages%2Fscikit-image%2F&amp;rft.creator=Emmanuelle+Gouillart&amp;rft.language=en">&nbsp;</span></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a></span> <span class="reference-text"><span class="cite">Eric Chiang: <a rel="nofollow" class="external text" href="http://blog.yhat.com/posts/image-processing-with-scikit-image.html"><i>Image Processing with scikit-image.</i></a> In: <i>The Yhat Blog.</i> 30.&nbsp;Januar 2014,<span class="Abrufdatum"> abgerufen am 31.&nbsp;August 2018</span> (englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Fde.wikipedia.org%3AScikit-image&amp;rft.title=Image+Processing+with+scikit-image&amp;rft.description=Image+Processing+with+scikit-image&amp;rft.identifier=http%3A%2F%2Fblog.yhat.com%2Fposts%2Fimage-processing-with-scikit-image.html&amp;rft.creator=Eric+Chiang&amp;rft.date=2014-01-30&amp;rft.language=en">&nbsp;</span></span>
</li>
</ol></div><!--htdig_noindex--><div><div class="zim-footer">
Dieser Artikel wurde von <a class="external text" title="Zuletzt bearbeitet am 2025-10-16" href="https://de.wikipedia.org/wiki/?title=Scikit-image&amp;oldid=260654841">Wikipedia</a> herausgegeben. Der Text ist unter <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de">Creative Commons Attribution-Share Alike 4.0</a> verfügbar, sofern nicht anders angegeben. Für die Mediendateien können zusätzliche Bedingungen gelten.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>

</body></html>